﻿
using System.Threading.Tasks;

namespace Guitar.Comet.Customer
{
    /// <summary>
    /// 消费者
    /// </summary>
    public interface ICustomer
    {
        /// <summary>
        /// 同步消费者处理器
        /// </summary>
        /// <param name="json"></param>
        void ClientHandle(string json);

        /// <summary>
        /// 异步消费者处理器
        /// </summary>
        /// <param name="json"></param>
        /// <returns></returns>
        Task AsyncClientHandle(string json);
    }
}
